﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using V5_Common;

namespace V5_EShop._Class.Data {
    public class V5ToolHelper {
        private static readonly V5ToolHelper m_Instance = new V5ToolHelper();
        /// <summary>
        /// 
        /// </summary>
        public static V5ToolHelper Instance {
            get { return m_Instance; }
        }
        #region Decode
        public string UrlDecode(string pageContent) {
            return HttpContext.Current.Server.UrlDecode(pageContent);
        }
        public string UrlEncode(string pageContent) {
            return HttpContext.Current.Server.UrlEncode(pageContent);
        }
        public string HtmlDecode(string pageContent) {
            return HttpContext.Current.Server.HtmlDecode(pageContent);
        }
        public string HtmlEncode(string pageContent) {
            return HttpContext.Current.Server.HtmlEncode(pageContent);
        }
        #endregion


        public string GetPageContent(string url, string pageCode, int timeOut) {
            return string.Empty;
        }

        public string CutString(string str, int length, string addstr) {
            return InputHelper.CutString(str, length, addstr);
        }
    }
}